import request from './axios'

export const getCheckinList = () => request.get('/reception/checkin')
export const addCheckin = (data) => request.post('/reception/checkin/add', data)
export const updateCheckin = (data) => request.put('/reception/checkin', data)
export const deleteCheckin = (id) => request.delete(`/reception/checkin/${id}`)
// 缺失接口补充
export const getCheckinRecords = (params) => request.get('/reception/checkin/records', { params })
export const submitCheckinRecord = (data) => request.post('/reception/checkin/submit', data)
export const getAvailableBeds = () => request.get('/reception/checkin/beds')
export const getAvailableCaregivers = () => request.get('/reception/checkin/caregivers')